/* 全局容器样式 */
.pageContainer {
    background: #f5f7fa;
    padding: 20px;
    min-height: 100vh;
}

.cardContainer {
    background: #fff;
    border-radius: 4px;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.formContainer {
    padding: 20px;
}

/* 布局样式 */
.formRow {
    display: flex;
    margin-bottom: 30px;
}

.formColumn {
    display: flex;
    margin-bottom: 15px;
}

.leftLabelColumn {
    width: 80px;
    text-align: right;
    margin-right: 12px;
    line-height: 32px;
    font-size: 14px;
    color: #333;
}

.requiredStar {
    color: #ff4d4f;
    margin-right: 4px;
}

.contentColumn {
    flex: 1;
}

/* 单选按钮组样式 */
.specTypeLayout {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 规格名称区域样式 */
.specNameInputLayout {
    display: flex;
    gap: 12px;
}

.specNameGrid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* 表格样式 */
.batchTable {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e8e8e8;
    table-layout: fixed;
}

.tableHeader {
    background: #f5f5f5; /* 浅灰色背景，与图片一致 */
    border-bottom: 2px solid #d9d9d9; /* 更粗的底部边框增强层次感 */
}

.tableHeaderCell {
    padding: 12px 16px;
    border-right: 1px solid #e8e8e8; /* 添加列间分隔线 */
    font-weight: 600;
    color: #333;
    text-align: center;
    font-size: 14px;
}

/* 移除最后一列的右边框 */
.tableHeaderCell:last-child {
    border-right: none;
}

/* 表格主体样式 */
.tableBodyCell {
    padding: 16px;
    vertical-align: middle;
    border-bottom: 1px solid #e8e8e8;
    height: 120px;
    position: relative;
}

.pictureIncorrect {
    padding: 16px;
    vertical-align: middle;
    border-bottom: 1px solid #e8e8e8;
    height: 120px;
    position: relative;
    text-align: center;
}

/* 图片上传容器 */
.specImageUploadContainer {
    margin: 0 auto;
    width: 75px !important;
    height: 75px !important;
    border: 1px dashed #bfbfbf;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

/* 操作按钮组样式 */
.operationBtnLayout {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    padding: 4px 0;
}

/* 按钮样式 */
.deleteButton {
    font-size: 12px;
    padding: 5px 8px;
    height: auto;
    border-radius: 4px;
    white-space: nowrap;
}

/* 修复错误提示样式 - 移除绝对定位 */
:global(.ant-form-item-explain) {
    font-size: 12px;
    line-height: 1.4;
    color: #ff4d4f;
    margin-top: 4px;
    min-height: 20px;
    /* 为错误提示预留固定高度 */
}

/* 表格内的错误提示特殊处理 */
.batchTable :global(.ant-form-item-explain) {
    position: absolute;
    left: 0;
    right: 0;
    line-height: 1.2;
}

/* 确保表单项目有足够的下边距 */
:global(.ant-form-item) {
    margin-bottom: 16px !important;
}

/* 表格内的表单项目特殊处理 */
.batchTable :global(.ant-form-item) {
    margin-bottom: 0 !important;
}

/* 为表格行添加最小高度，确保有空间显示错误提示 */
.batchTable tr {
    position: relative;
    min-height: 140px;
    /* 增加行高以容纳错误提示 */
}

/* 图片上传容器的错误提示特殊处理 */
.specImageUploadContainer :global(.ant-form-item-explain) {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
}

/* 输入框容器的错误提示 */
.specNameGrid :global(.ant-form-item-explain) {
    position: absolute;
    left: 0;
    right: 0;
}

/* 移除不必要的绝对定位样式 */
.imageUploadWrapper {
    position: relative;
    margin-bottom: 20px;
}